@import "../common/mixin.scss";
@import "../common/var.scss";
// 秒杀-背景
.ms-bg {
    @include bg('../img/ms_bg.png');
    background-position: top center;
}

// 秒杀-首页-顶部
.ms-i-top-wrap {
    height: 165px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    .biaoyu {
        font-size: 18px;
        color: #423d3d;
        letter-spacing: 8px;
        margin-top: 8px;
    }
}

// 秒杀-首页-列表
.ms-i-list {
    display: flex;
    flex-wrap: wrap;
    .ms-i-item-wrap {
        position: relative;
        width: 285px;
        height: 366px;
        margin-right: 20px;
        margin-bottom: 20px;
        &:nth-child(4n) {
            margin-right: 0;
        }
        .ms-pro-info {
            position: absolute;
            bottom: 25px;
            left: 25px;
            right: 25px;
            height: 140px;
            text-align: center;
            .ms-timeleft {
                background-color: #ff3560;
                color: #fff;
                font-size: 14px;
                line-height: 40px;
                .num {
                    background-color: #fff;
                    border-radius: 5px;
                    color: #ff3560;
                    font-size: 16px;
                    font-weight: bold;
                    margin: 0 4px;
                    line-height: 20px;
                    width: 24px;
                    display: inline-block;
                }
            }
            .ms-pro-logo-wrap {
                background-color: rgba(245, 245, 245, .5);
                height: 100px;
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                &:hover .ms-qianggou {
                    display: block;
                }
                &:hover .ms-pro-logo-top {
                    display: none;
                }
            }
            .ms-pro-title {
                color: #000;
                font-size: 20px;
                margin-top: 14px;
            }
            .ms-pro-logo {
                max-width: 100%;
                max-height: 36px;
            }
            .ms-qianggou {
                border: 2px solid $border-red;
                color: $fc-red;
                font-size: 16px;
                background-color: #fff;
                padding: 10px 24px;
                cursor: pointer;
                display: none;
            }
        }
    }
}

// 秒杀-商品列表页-顶部
.ms-list-top-wrap {
    position: relative;
    text-align: center;
    font-size: 24px;
    color: $fc-base;
    margin: 60px 0 40px 0;
    &:before {
        content: '';
        position: absolute;
        height: 1px;
        width: 27%;
        background-color: $bg-gray;
        left: 0;
        top: 40%;
    }
    &:after {
        content: '';
        position: absolute;
        height: 1px;
        width: 27%;
        background-color: $bg-gray;
        right: 0;
        top: 40%;
    }
    .num {
        display: inline-block;
        background-color: $bg-red;
        font-size: 20px;
        line-height: 40px;
        width: 40px;
        text-align: center;
        color: #FFF;
        border-radius: 5px;
        margin-right: 10px;
    }
}

// 秒杀-商品列表页
.ms-pro-list {
    display: flex;
    flex-wrap: wrap;
    .ms-pro-item-wrap {
        margin-right: 20px;
        margin-bottom: 20px;
        &:nth-child(4n) {
            margin-right: 0;
        }
        .ms-pro-title {
            background-color: rgba(0, 0, 0, .7);
            line-height: 30px;
            color: #fff;
            padding-left: 12px;
            position: absolute;
            top: -30px;
            left: 0;
            right: 0;
        }
        img{
            display: block;
            width: 285px;
            height: 366px;
        }
        .ms-pro-detail-wrap {
            display: flex;
            background-color: $bg-red;
            color: #fff;
            align-items: center;
            position: relative;
            height: 62px;
            padding-left: 8px;
            .unit {
                font-size: 24px;
            }
            .price {
                font-size: 40px;
            }
            .sell-info {
                font-size: 14px;
                margin-left: 12px;
            }
            .qiang {
                background-color: #ffed6a;
                font-size: 32px;
                color: #ff4400;
                position: absolute;
                right: 0;
                bottom: 0;
                top: 0;
                width: 57px;
                line-height: 62px;
                text-align: center;
            }
            .triangle-left {
                position: absolute;
                right: 57px;
                top: 0;
                bottom: 0;
                width: 0;
                height: 0;
                border-top: 31px solid transparent;
                border-right: 12px solid #ffed6a;
                border-bottom: 31px solid transparent;
            }
        }
    }
}